﻿@model TechnicBlog.Models.ClassesEntity
@{
    Layout = null;
}

<script>
    function RequestError() {
        $.messager.alert('错误', '<br>请求失败！', 'error');
    }
    function checkSubmit() {
        if ($("#form0").validate()) {
            $('#loading').window('open');
            $("#form0").ajaxSubmit({ action: this.action, method: this.method });
        }
    }
</script>

<form id="form0" action="/Classes/Add" method="post" data-ajax-failure="RequestError"
data-ajax="true">
    <table style="color: #666666; width: 100%;">
        <tr style="height: 34px;">
            <td style="width: 30%;" align="right">
                班级名称：
            </td>
            <td style="width: 70%;" align="left">
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.ClassName, new { require = "true"})
                </div>
            </td>
        </tr>
        <tr style="height: 34px;">
            <td style="width: 30%;" align="right">
                班主任：
            </td>
            <td style="width: 70%;" align="left">
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.ClassTeacher, new {require = "true"})
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <a class="easyui-linkbutton"
                    iconcls="icon-save" onclick="return checkSubmit();">提交</a>
                    <a class="easyui-linkbutton"
                    iconcls="icon-cancel" onclick="javascript:$('#divAdd').window('close');">关闭</a>
            </td>
        </tr>
    </table>
</form>

